new Vue({
    el: '#app',
    mixins: [Save],//组件配置文件，路径/utils/components.js
    data() {
        return {
            dataForm:{},
            childDataForm:[{}],//子表
            planting_people_mapping_land:[],//
            planting_people_mapping_crop:[],
            planting_people:[],
            Planting_People_SerialNumber:'',//主键名
            
        }
    },
    mounted() {
        /**
         * 组件配置文件中自动执行方法流水号

         * 1.this.init(); //初始化文件
         * 2.this.getData(); //仅修改时执行，根据BOM配置属性查询
         */
        
        let ls_URL = window.location.href;
        this.Planting_People_SerialNumber = getQueryObject(ls_URL, "Planting_People_SerialNumber");//主键接口
        this.getList()
    },
    methods: {
        getList(){
            httpRequest({
                url: '/generalBusiness/generalQueryByTableName',
                data: {
                    Data: 'planting_people',
                    Condition: `Planting_People_SerialNumber='${this.Planting_People_SerialNumber}'`
                },
                type:'GET'
            }).then(data => {
                this.dataForm = data [0]
                console.log(data);
            }).catch(()=>{

            })
        }
        
    }
})